home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / db_connect < prev    next >
Text File  |  2001-06-18  |  847b  |  25 lines

  1. OPTIONAL
  2. SYNOPSIS
  3.         int db_connect(string database)
  4.         int db_connect(string database, string user)
  5.         int db_connect(string database, string user, string password)
  6.  
  7. DESCRIPTION
  8.         Connect to the database <database> on the local mySQL-server.
  9.         The return-value is the handle for this connection.
  10.         If the database does not exist or the server is NOT started,
  11.         a runtime-error is raised.
  12.  
  13.         If specified, the connection is made for <user> with <password>.
  14.  
  15.         The function is available only if the driver is compiled with
  16.         mySQL support. In that case, __MYSQL__ is defined.
  17.  
  18. HISTORY
  19.         Added in 3.2.9 .
  20.  
  21. SEE ALSO
  22.         db_affected_rows(E), db_conv_string(E), db_close(E), db_coldefs(E),
  23.         db_exec(E), db_error(E), db_fetch(E), db_handles(E),
  24.         db_insert_id(E), mysql(C)
  25.